<?php $form=$this->beginWidget('bootstrap.widgets.TbActiveForm',array(
	'id'=>'owner-form',
	'enableAjaxValidation'=>false,
)); ?>

	<p class="help-block">Campos com <span class="required">*</span> são obrigatórios.</p>

	<?php echo $form->errorSummary(array($model, $user)); ?>

	<?php echo $form->textFieldRow($model,'name',array('class'=>'span5','maxlength'=>250)); ?>

	<?php echo $form->textFieldRow($user,'username',array('class'=>'span3', 'maxlength'=>50)); ?>
	
	<?php echo $form->passwordFieldRow($user, 'password', array('class'=>'span3', 'maxlength'=>50));?>
	
	<?php echo $form->passwordFieldRow($user, 'repeat_password', array('class'=>'span3', 'maxlength'=>50));?>
	
	<?php echo $form->textFieldRow($user, 'email', array('class'=>'span5', 'maxlength'=>250));?>

	<div class="form-actions" align="center">
		<?php $this->widget('bootstrap.widgets.TbButton', array(
			'buttonType'=>'submit',
			'type'=>'primary',
			'label'=>$model->isNewRecord ? 'Cadastrar' : 'Salvar',
		)); ?>
	</div>

<?php $this->endWidget(); ?>
